import { IsDateString, IsNotEmpty, IsNumber, IsString } from "class-validator";

export class CreateMenuDto {

  @IsNotEmpty()
  @IsNumber()
  parent_id: number;

  @IsNotEmpty()
  @IsNumber()
  type: number;

  @IsNotEmpty()
  @IsString()
  code: string;

  @IsNotEmpty()
  @IsString()
  name: string;

  @IsNotEmpty()
  @IsDateString()
  updateTime: Date;
}
